package com.rc.saas.tenant.mapper.operator;


import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.elec.ElecStation;
import com.rc.saas.tenant.model.operator.TenantOperatorStation;
import com.rc.saas.tenant.model.operator.TenantOperatorStationExample;
import com.rc.saas.tenant.search.acct.AcctTenantOperatorElecStationSearch;
import com.rc.saas.tenant.vo.elec.ElecStationResult;
import com.rc.saas.tenant.vo.elec.TenantOperatorStationVo;
import com.rc.saas.tenant.vo.operator.OperatorElecStationVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TenantOperatorStationMapper extends BaseMapper<Long, TenantOperatorStation, TenantOperatorStationExample> {

    List<TenantOperatorStationVo> pageTenantOperatorStation(Long elecStationId);

    List<Long> listElecStationIdByTenantOperator(@Param("tenantCode") String tenantCode,@Param("tenantOperatorCode") String tenantOperatorCode);

    List<TenantOperatorStationVo> listOperatorByStationId(Long elecStationId);

    List<ElecStationResult> listElecStationByTenantOperator(String tenantOperatorCode);

    List<OperatorElecStationVo> listPageAcctTenantOperatorElecStation(AcctTenantOperatorElecStationSearch acctTenantOperatorElecStationSearch);

    int countByOperatorStation(String tenantCode);
}